var searchHit = "项目名称";

$(function() {
    if ($("#projectName").val() == "") {
        inputTip($(".editBlock .inputText"), searchHit); // 查询条件占位符
    }
    $("#searchButton").click(search);
    // $(".analysisList li").click(function() {
    // toScheme();
    // });
});

function search() {
    if ($("#projectName").val() == searchHit) {
        $("#projectName").val("");
    }
    $("#myForm").attr("action", "analysis_index.action");
    $("#myForm").submit();
}

function toScheme(projectCode, schemeCode) {
    $("#projectCode").val(projectCode);
    $("#schemeCode").val(schemeCode);

    $("#myForm").attr("action", "analysis_scheme.action");
    $("#myForm").submit();
}